package com.ailink.design.principle.openclose;

public class Test {
    public static void main(String[] args) {
        ICourse course = new JavaDiscountCourse(1, "设计模式", 128.88);
        System.out.println("id:" + course.getId());
        System.out.println("name:" + course.getName());
        System.out.println("price:" + course.getPrice());
    }
}
